package com.liaoyoule.design_pattern.decorate.going;

/**
 * @Description:
 * @Author liujie
 * @Date 2017-02-06 11:35
 */


public abstract class Finery extends Packman {

    protected Packman component;


    public  void  decorate(Packman component){
        this.component = component;
    }


    @Override
    public void sellGoods() {
       if (component != null){
           component.sellGoods();
       }
    }
}
